package com.ynwt.thread;

import com.ynwt.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by huangying on 2017/5/25.
 */
@Component
public class RefreshQrcodeThread implements Runnable {

    private String openid;

    public RefreshQrcodeThread setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    @Override
    public void run() {
        eventService.refreshQrcode(openid);
    }

    @Autowired
    private EventService eventService;
}
